<h1>customers</h1>
<p align="right"><a href="<?php echo site_url('people/customer/create_customer');?>">Add customer</a></p>
<!--<div id="infoMessage"><?php echo $message;?></div>-->

<table class="table table-striped table-bordered" width="100%" id="example">
	<thead>
    <tr>
		<th>customer Name</th>
		<th>Tin Number</th>
        <th>Phone Number</th>
        <th>Emial Address</th>
        <th>Address</th>
        <th>Action</th>
	</tr>
    </thead>
	<?php foreach ($users as $user):?>
		<tr>
			<td><?php echo $user->username; ?></td>
			<td><?php  echo $user->tin_no; ?></td>
            <td><?php  echo $user->phone; ?></td>
            <td><?php  echo $user->email; ?></td>
            <td><?php  echo $user->address; ?></td>
           <td><?php echo anchor("people/customer/edit_customer/".$user->id, 'Edit') ;?>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               <a href="<?php echo site_url('people/customer/delete_customer/').'/'.$user->id;?>" onclick="return confirm('Are you sure you want to DELETE this customer ??')">Delete</a>
         </td>
		</tr>
	<?php endforeach;?>
</table>

<!--<p><a href="<?php echo site_url('auth/create_user');?>">Create a new user</a> | <a href="<?php echo site_url('auth/create_group');?>">Create a new group</a>
<a href="<?php echo site_url('auth/logout');?>">Logout</a>
</p>-->
